﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.Windows.Forms;

namespace SoGame.WebServices.Host
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();

            EventAggregator.EventAggregator.DefaultPublicationThreadMarshaller = action => action();

            Application.Run(new ServiceManager());
            //using(var soGameService = new ServiceHost(typeof(ServiceManager))) {
            //    soGameService.Open();

            //    Console.WriteLine("The service is ready at {0}", soGameService.BaseAddresses[0].ToString());
            //    Console.WriteLine("Press <Enter> to stop the service.");
            //    Console.ReadLine();

            //    soGameService.Close();
            //}

        }
    }
}
